package homework_02;

public class Home_02 {
    public static void main(String[] args) {
        int a=345;
        int x,y,z;
        x=a/100;
        y=a%100/10;
        z=a%10;
        System.out.println(x+y+z);

    }
}
